package com.thwj.framework.config.wx;

import cn.binarywang.wx.miniapp.config.impl.AbstractWxMaRedisConfig;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.util.Pool;

/**
 * @author: 
 * @date: 2021/06/12 22:37
 * <p>
 * Copyright (C), 
 */
public class WxMaJedisSentinelPoolConfigImpl extends AbstractWxMaRedisConfig {

    private final Pool<Jedis> jedisPool;

    public WxMaJedisSentinelPoolConfigImpl(Pool jedisPool) {
        this.jedisPool = jedisPool;
    }

    @Override
    protected Jedis getJedis() {
        return jedisPool.getResource();
    }
}
